#pragma once

#include <string>
#include <vector>
//#include "sqlite3.h"

class UserComment
{
private:
	double		_rating;
	std::string _helpfulness;
	std::string _comment;
	float		_avgEmotion;
	std::vector<float>	_emotions;
public:
	UserComment(void);
	UserComment(double userRating, std::string helpfulness, std::string userComment);
	~UserComment(void);

	float		AvgEmotion()
	{
		return _avgEmotion;
	}

	std::vector<float>&	Emotions()
	{
		return _emotions;
	}

	void			AddEmotion(float emotion)
	{
		_emotions.push_back(emotion);
	}

	void			SetAvgEmotion(float emotion)
	{
		_avgEmotion = emotion;
	}

	double			Rating()
	{
		return _rating;
	}

	std::string Comment() {	return _comment; }
	//void writeCommentToDB(sqlite3* db, int movieId);

	void cleanComment();
};

